<template>
    <div class="container">
        <div class="con">
            <yd-preview v-for="(item, index) in items" :buttons="btns">
                <yd-preview-header>
                    <div slot="left">MT5账号</div>
                    <div slot="right">{{item.mt5Account}}</div>
                </yd-preview-header>

                <yd-preview-item>
                    <div slot="left">创建时间</div>
                    <div slot="right">{{item.createTime}}</div>
                </yd-preview-item>
                <!--<yd-preview-item>
                    <div slot="left"></div>
                    <div slot="right">
                        <a href="" class="yd-btn yd-btn-primary" style="margin-right: 10px;">出金申请</a>
                        <a href="" class="yd-btn yd-btn-primary">内部转账</a>
                    </div>
                </yd-preview-item>-->
            </yd-preview>
        </div>
    </div>
</template>
<script>
    import AjaxHttp from '../../js/ajaxHttp.js';
    export default{
        data: function () {
            return {
                items: '',
                btns: []
            }
        },
        created: function () {
            const _this = this;
            AjaxHttp.getHttp('fxsys/onLineCase/index').then(function (response) {
                console.log(response);
                _this.items = response.onLineMT5ListInfoVOList;
            });
        }
    }
</script>